package com.framework.web.bus.repository;

import com.framework.web.bus.domain.Express;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


/**
 * @author fusf
 * @version V1.0
 * @Title: Repository
 * @Description: repository
 * @date 2016-11-21
 */
public interface ExpressRepository extends JpaRepository<Express, String>,
        JpaSpecificationExecutor<Express> {

        /**
         * 根据订单号，时间排序
         * @param orderId
         * @return
         */
        public List<Express> findByOrderIdOrderByTime(String orderId);

}